{% extends "service_log/sl_base.html" %}

{% load i18n %}
{% load widget_tweaks %}
{% load qa_tags %}
{% load qatrack_tags %}
{% load attach_tags %}
{% load comments %}
{% load static %}

{% block head_title %}{% trans "Service Event" %}{% endblock %}

{% block extra_css %}
    {{ block.super }}
    <link href="{% static "select2/css/select2.min.css" %}?v={{ VERSION }}" rel="stylesheet">
    <link href="{% static "qatrack_core/css/tables.css" %}?v={{ VERSION }}" rel="stylesheet">
    <link href="{% static "qatrack_core/css/custom-select2.css" %}?v={{ VERSION }}" rel="stylesheet">
    <link href="{% static "flatpickr/css/flatpickr.css" %}?v={{ VERSION }}" rel="stylesheet">
    <link href="{% static "qatrack_core/css/flatpickr-custom.css" %}?v={{ VERSION }}" rel="stylesheet">
{% endblock extra_css %}

{% block extra_js %}

{% endblock extra_js %}

{% block require_javascript %}
    require(['sl_se_template']);
{% endblock require_javascript %}

{% block body %}
<div class="max-width-lg">
  <div class="row">
    <div class="col-lg-12">
      <h3 class="no-margin-top">{% block content_title %}{% endblock %}</h3>
    </div>
  </div>

  <div class="row">
    <div class="col-lg-12">
      <div class="box">
        <div class="box-header"></div>

        <div class="box-body">
          <form id="template_form" method="post" class="form-horizontal" novalidate>
            {% csrf_token %}

            {% include '_form_horizontal.html' with form=form %}

          </form>
        </div>

        <div class="box-footer">
          <button class="pull-right btn btn-primary btn-flat" type="submit" form="template_form">
            {% block submit_btn %}{% endblock %}
          </button>
        </div>

      </div>
    </div>
  </div>

</div>

{% endblock body %}
